package text;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Text {
    public static void main(String[] args) {
        LinkedList<String> list =new LinkedList<>();
        list.add("Java");
        System.out.println(list);
        System.out.println(list.contains("Jva"));
        LinkedList<String> list1 =new LinkedList<>(list);
        list1.add("Java SE");
        list1.add("Java EE");
        list.addAll(list1);
        System.out.println(list);
        System.out.println(list1);
        List<String> list2 =list.subList(1,4);
        System.out.println(list);
        System.out.println(list2);
        ArrayList<Integer> list3= new ArrayList<>();

    }
}
